package negocio;

import java.util.Vector;

import org.jfree.data.statistics.Statistics;

public class CalculosEstatisticos {
	
	public static double calculaMedia(Double[] array){
		return Statistics.calculateMean(array);
	}
	
	public static double calculaDesvioPadrao(Double[] array){
		return Statistics.getStdDev(array);
	}
	
	public static double calculaMediana(Double[] array){
		return (double)array[array.length/2];
	}
}
